package cate.common.table.trademall.monthcard;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass(value = "交易坊-月卡 Row")
public class MonthCardRow extends ERow {
    @NoteField(value = "名称")
    public String name;
    @NoteField(value = "持续奖励")
    public String dailyRewardStr;
    @NoteField(value = "持续天数")
    public int keepDay;
    @NoteField(value = "邮件ID")
    public int mailId;
    @NoteField(value = "跑马灯公告")
    public int lampId;
    @NoteField(value = "累计充值金额")
    public long payTarget;
    @NoteField(value = "激活邮件ID")
    public int activeMailId;

    @Override
    public void parse(XSSFRowWrap xrw) {
        super.parse(xrw);
        id = xrw.getInteger("ID");
        name = xrw.getString("名称");
        dailyRewardStr = xrw.getString("持续奖励");
        keepDay = xrw.getInteger("持续天数");
        mailId = xrw.getInteger("邮件ID");
        lampId = xrw.getInteger("跑马灯公告", 0);
        payTarget = xrw.getLong("累计充值金额", 999999999L);
        activeMailId = xrw.getInteger("激活邮件ID", 0);
    }
}
